支持三种方式初始化表格: 1.html格式数据(即静态数据); 2.JavaScript传递数据; 3.数据属性变量动态获取。 1.静态表格:data-toggle="table" <table data-toggle="table"> <thead> <tr> <th>Item ID</th> < ...
分类:
其他好文 时间:
2021-03-02 12:21:56
阅读次数:
0
# 生成命令对应的yaml文件(资源清单)kubectl create deployment xxxxxxxxxxx --image=nginx --dry-run -o yamlkubectl create deployment xxxxxxxxxxx --image=nginx --dry-ru ...
分类:
其他好文 时间:
2021-03-01 13:16:39
阅读次数:
0
一、流程控制 while循环:只要条件满足一直循环 read -p "请输入一个数字:" white_data while [ ${white_data} -lt 20 ] do echo ${white_data} white_data=$((white_data + 1)) done until ...
分类:
系统相关 时间:
2021-02-27 13:22:57
阅读次数:
0
题目要求 用shell实现,把一个文本文档中只有一个数字的行给打印出来。 参考答案 #!/bin/bash while read line do n=`echo $line |sed 's/[^0-9]//g'|wc -L` if [ $n -eq 1 ] then echo $line fi do ...
分类:
其他好文 时间:
2021-02-27 13:00:32
阅读次数:
0
题目要求 写一个shell脚本,把192.168.0.0/24网段在线的ip列出来。 参考答案 #!/bin/bash for i in `seq 1 254` do if ping -c 2 -W 2 192.168.0.$i >/dev/null 2>/dev/null then echo "1 ...
分类:
其他好文 时间:
2021-02-27 12:59:19
阅读次数:
0
题目要求 输入一串随机数字,然后按千分位输出。 比如输入数字串为“123456789”,输出为123,456,789。 参考答案 #!/bin/bash n=`echo $1|wc -L` for d in `echo $1|sed 's/./& /g'` do n2=$[$n%3] if [ $n ...
分类:
其他好文 时间:
2021-02-27 12:58:28
阅读次数:
0
golang的最新项目管理推荐采用module模式。 一、go mod命令使用详解 1.golang版本 go的module管理模式在golang 1.11版本后才能够使用。 2.环境变量的设置 要使用golang的module项目管理模式,需要设置对应的环境变量GO111MODULE的值,该变量有 ...
分类:
其他好文 时间:
2021-02-26 13:35:15
阅读次数:
0
#!/bin/bash -ilex #服务名称 SERVER_NAME=project-name 源jar路径,mvn打包完成之后,target目录下的jar包名称,也可选择成为war包,war包可移动到Tomcat的webapps目录下运行,这里使用jar包,用java -jar 命令执行 JAR ...
分类:
其他好文 时间:
2021-02-25 12:21:35
阅读次数:
0
A - Circle #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 5; typedef long long LL; int r; int main(){ cin >> r; cout << r * r << end ...
分类:
其他好文 时间:
2021-02-24 13:15:50
阅读次数:
0
@echo on For /f "tokens=*" %%i in ('dir /a-d /b /s "*.exe"') do ( D:\RuanJian\Qt\Qt5.14.2\5.14.2\msvc2017_64\bin\windeployqt.exe "%%i" --debug)Pause P ...
分类:
其他好文 时间:
2021-02-24 13:10:34
阅读次数:
0